package com.zrfintech.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zrfintech.domain.MgMenu;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
public interface MgMenuDaoI extends BaseMapper<MgMenu> {

   @Insert("INSERT INTO `mg_menu` (`menu_code`,`label`,`icon`,`url`,`parent_menu_code`,`menu_sort`,`page_code`) VALUES (#{menuCode},#{label},#{icon},#{url},#{parentMenuCode},#{menuSort},#{pageCode})")
   @Options(useGeneratedKeys = true, keyProperty = "id")
   int create(MgMenu mgMenu);
}
